// 主容器
.main-container {
  padding: 20rpx;
  background: #ffffff;
  height: 100vh; // 固定高度为视口高度
  max-height: 100vh; // 最大高度限制
  position: relative;
  overflow: hidden; // 禁止滚动
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

// 图片展示区
.image-section {
  position: relative;
  margin-bottom: 20rpx;
  border-radius: 24rpx;
  overflow: hidden;
  box-shadow: 0 10rpx 40rpx rgba(0, 0, 0, 0.15);
  height: 300rpx; // 减少高度以适应固定视口
  flex-shrink: 0; // 防止被压缩
  
  .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
      rgba(0, 0, 0, 0.3) 0%, 
      transparent 50%, 
      rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30rpx;
    
    .overlay-text {
      color: white;
      font-size: 32rpx;
      font-weight: bold;
      text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.3);
    }
  }
}



// 推广信息区
.promotion-section {
  background: #f8f9fa;
  border-radius: 24rpx;
  padding: 20rpx; // 减少内边距
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
  border: 1rpx solid #e9ecef;
  flex-shrink: 0; // 防止被压缩
  margin-bottom: 20rpx; // 添加底部间距
}

.promotion-card {
  margin-bottom: 24rpx;
  
  .promotion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12rpx;
    
    .promotion-title {
      font-size: 32rpx;
      font-weight: bold;
      color: #2c3e50;
      flex: 1;
    }
    
    .promotion-footer {
      display: flex;
      align-items: center;
      gap: 12rpx;
      flex-shrink: 0;
      
      .promotion-price {
        font-size: 24rpx;
        color: #95a5a6;
        text-decoration: line-through;
      }
      
      .promotion-offer {
        background: linear-gradient(90deg, #FF6B6B 0%, #FF8E8E 100%);
        color: white;
        font-size: 22rpx;
        font-weight: bold;
        padding: 8rpx 16rpx;
        border-radius: 20rpx;
        box-shadow: 0 4rpx 12rpx rgba(255, 107, 107, 0.3);
        white-space: nowrap;
      }
    }
  }
  
  .promotion-subtitle {
    font-size: 24rpx;
    color: #7f8c8d;
    line-height: 1.4;
  }
}

// 底部统计信息区域
.bottom-stats {
  padding: 0 20rpx;
  text-align: center;
  flex-shrink: 0; // 防止被压缩
  margin-top: auto; // 推到底部
  
  .stats-text {
    font-size: 20rpx;
    color: #95a5a6;
    line-height: 1.6;
    margin-bottom: 8rpx;
    text-align: center;
    display: block;
    
    &:last-child {
      margin-bottom: 0;
    }
  }
}

// 上传状态覆盖层
.upload-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  
  .upload-indicator {
    background: white;
    padding: 40rpx;
    border-radius: 20rpx;
    text-align: center;
    box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.3);
    
    text {
      font-size: 28rpx;
      color: #333;
    }
  }
}
